package com.shengjing.apk.network.service

import com.shengjing.apk.network.model.LoginModel
import com.shengjing.apk.network.model.WeatherinfoModel
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiStores {
    companion object {
        val API_SERVER_URL = "https://wechat.joisen.net.cn/api/"
    }

    @GET("adat/sk/{cityId}.html")
    fun loadData(@Path("cityId") cityId: String): Observable<WeatherinfoModel>

    @GET("wxlogin/get_wx_user_info")
    fun loginThirdPart(@Query("openid") openid: String,
                       @Query("nickName") nickName: String,
                       @Query("avatarUrl") avatarUrl: String): Observable<LoginModel>
}